<?php $this->widget('bootstrap.widgets.BootAlert'); ?>

<div class="span4 well">
	<h3>Смена названия деревни</h3>
	<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.BootActiveForm', array(
    'id'=>'ChangeNameSettings',
    'type'=>'horizontal',
	'action' => $this->createUrl('profile/changeName')
)); ?>
	<p style="height:10px;"></p>
	<?php echo $form->textFieldRow($settlement, 'name'); ?>
	
	<p style="float:right;">
	<?php $this->widget('bootstrap.widgets.BootButton', array(
															  'buttonType'=>'submit', 
															  'type'=>'success',
															  'size'=>'small',
															  'label'=>'Изменить'
															 )); ?>
	</p>
	<?php $this->endWidget(); ?>
</div>

<div class="span3 well">
	<h3>Смена пароля</h3>
	
	<?php /** @var BootActiveForm $form */
	$form = $this->beginWidget('bootstrap.widgets.BootActiveForm', array(
    'id'=>'ChangePassword',
    'type'=>'horizontal',
	'action' => $this->createUrl('profile/changePassword')
)); ?>

	<p style="height:10px;"></p>
	
	<?php echo $form->passwordFieldRow($user, 'old_password', array('class'=>'input-small')); ?>
	<?php echo $form->passwordFieldRow($user, 'new_password', array('class'=>'input-small')); ?>
	<?php echo $form->passwordFieldRow($user, 're_new_password', array('class'=>'input-small')); ?>
	
	<p style="float:right;">
	<?php $this->widget('bootstrap.widgets.BootButton', array(
															  'buttonType'=>'submit', 
															  'type'=>'success',
															  'size'=>'small', 
															  'label'=>'Изменить'
															 )); ?>
	</p>
	
	<?php $this->endWidget(); ?>
</div>